<template>
    <div>
        <button @click="test">click</button>
        {{$store.getters.mit}}---{{age}}
    </div>
</template>

<script>
import { mapState, mapMutations,mapActions } from "vuex"
    export default {
        data(){
            return{
                num:1,
            }
        },
        methods:{
            ...mapActions("msbd",["getRenderTable"]),
            test(){
                // console.log(this.$store.state)
                // this.$store.commit('GET_NUM',2)
                // this.$store.dispatch('getRendlist', 123)
                // this.$store.dispatch("gettext")
                // console.log(this.$store.state.msbd.ages)
                // this.$store.commit("msbd/GET_LIST")
                // this.$store.dispatch("msbd/getRenderTable")
                this.getRenderTable()
            }
        },
        computed:{
            ...mapState(['age'])
        },
    }
</script>

<style scoped>

</style>